package com.jiepu.daily.corejava.advanceed.part2.day0717;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

/**
 * @Description:
 * @author: xinjie.txt
 * @date: 2020/7/20  8:33
 */
public class Test {

	public static void main(String[] args) {
		Collection coll = new ArrayList();
		coll.add("hello");
		coll.add("world");
		coll.add("hi");
		coll.add("briup");

		Iterator iterator = coll.iterator();
		while (iterator.hasNext())
			System.out.println(iterator.next());

	}

	@Override
	public int hashCode() {
		return super.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		return super.equals(obj);
	}

}
